/*! \file Result.h
 *	\brief <write description for Result.h>
 *
 *	created:	2010/12/13
 *	created:	13:12:2010   12:54
 *	filename: 	C:\src\tactics-engine\libs\core\Result.h
 *	file path:	C:\src\tactics-engine\libs\core
 *	file base:	Result
 *	file ext:	h
 *	author:		Vitalii Trubchaninov
 *				vitalii.trubchaninov@ubisoft.com
 */

#ifndef _core_RESULT_H_
#define _core_RESULT_H_

#pragma once

#include "types.h"

namespace tt{

class Result
{
public:
	static Result Success();
	static Result Failure();

	bool succeeded() const;
	bool failed() const;

private:
	Result(UInt status);

private:
	enum Status
	{
		S_SUCCEEDED = 0,
		S_FAILED = 1,
	};
	UInt m_status;
};

} //namespace tt
#include "Result.inl"

#endif //_core_RESULT_H_